package life;

import java.util.Arrays;

public class DemoDemo {
    public static void main(String[] args) {
        Integer i = new Integer("10");
        D d = new D();
        change(i,d);
        System.out.println(i);
        System.out.println(d.b);
        System.out.println(Arrays.toString(d.a));
        System.out.println("=============");
        String s = "祝你考出好成绩！";
        System.out.println(s.length());
    }

    private static void change(Integer i, D d) {
        i+=20;
        d.b+=1;
        d.a[0]=1000;
    }
}
class D{
    public int[] a=new int[10];
    int b=10;
    protected void test(){
        System.out.println("protected");
    }
}
